package com.xmy.cultivate.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xmy.cultivate.entity.Admin;
import com.xmy.cultivate.entity.InterflowCommunity;
import com.xmy.cultivate.mapper.AdminMapper;
import com.xmy.cultivate.mapper.InterflowCommunityMapper;
import com.xmy.cultivate.service.IAdminService;
import com.xmy.cultivate.service.IInterflowCommunityService;
import com.xmy.cultivate.service.IOrderApplyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 沟通社区 服务实现类
 * </p>
 *
 * @author Helin
 * @since 2024-03-02
 */
@Service
public class InterflowCommunityServiceImpl extends ServiceImpl<InterflowCommunityMapper, InterflowCommunity> implements IInterflowCommunityService {

    @Autowired
    @Lazy
    InterflowCommunityMapper interflowCommunityMapper;

    /**
     * 员工信息列表
     *
     * @param type
     * @param staffId
     * @return
     */
    @Override
    public IPage<InterflowCommunity> staffList(IPage<?> page, String type, String staffId) {
        return interflowCommunityMapper.staffList(page,type,staffId);
    }

    /**
     * 员工信息内容
     *
     * @param id
     * @param staffName
     * @return
     */
    @Override
    public InterflowCommunity staffInformation(String id, String staffName) {
        return interflowCommunityMapper.staffInformation(id,staffName);
    }
}
